package com.loong.member.common.forehead.param;

import com.loong.common.mvc.ParamBaseDO;
import com.loong.common.validator.group.CommonValidate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description:
 * @Author: 刘群
 * @Date: 2020/10/28 17:07
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CartDeleteForeheadParam{

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 购物车id，如有多个id则用英文逗号隔开
     */
    @NotEmpty(message = "购物车id集合不能为空",groups = { CommonValidate.class})
    private List<Long> cartIdList;
}
